package com.sinping.qh.service.redis;

/**
 * @author zhangjin
 * @create 2018/8/10
 */
public class RedisCommon {

    public static String REDIS_TRUE="true";
    public static String REDIS_FASLE="false";


    public enum RedisPrimaryKey{

        UserSessionByApp("UserSessionByApp","app:token_");



        private String secorndKey;
        private String firstKey;


        public String getSecorndKey(){
            return  secorndKey;
        }

        public String getFirstKey(){
            return  firstKey;
        }

        RedisPrimaryKey(String secorndKey,String firstKey)
        {
            this.secorndKey=secorndKey;
            this.firstKey=firstKey;
        }

    }


    public  enum UpdateType{
        /**
         * 修改
         */
        Modified("modified"),
        /**
         * 独享
         */
        Exlusive("exlusive"),
        /**
         * 共享
         */
        Shared("shared"),
        /**
         * 无效
         */
        Invalid("invalid");



        private String updateName;

        public String getUpdateName(){
            return  updateName;
        }
        UpdateType(String name)
        {
            this.updateName=name;
        }

    }
}
